package entity.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ljc
 * @since 2023-02-28
 */
@Getter
@Setter
@TableName("tb_order")
@ApiModel(value = "Order对象", description = "")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单id")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(" 用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("订单创建时间")
    @TableField("order_created")
    private LocalDateTime orderCreated;

    @ApiModelProperty("订单支付时间")
    @TableField("order_pay")
    private LocalDateTime orderPay;

    @ApiModelProperty("订单状态:0代表已经关闭(过期未支付或者未确认) 1代表确认 2代表未支付 3代表已支付 4代表未发货 5代表已发货 6代表已签收")
    @TableField("order_state")
    private Integer orderState;

    @ApiModelProperty("订单来源:1代表来自app,2代表来自pc端,3代表来自小程序")
    @TableField("order_state")
    private Integer orderSource;

}
